import request from "@/utils/request";

// 查询列表
export function bpList(query) {
  return request({
    url: "/mall/banner/position/list",
    method: "get",
    params: query,
  });
}
// 新增
export function addBp(data) {
  return request({
    url: "/mall/banner/position",
    method: "post",
    data,
  });
}
// 编辑
export function editBp(data) {
  return request({
    url: "/mall/banner/position",
    method: "put",
    data,
  });
}
// 删除
export function delBp(id) {
  return request({
    url: "/mall/banner/position/" + id,
    method: "delete",
  });
}
// 详情
export function getBp(id) {
  return request({
    url: "/mall/banner/position/" + id,
    method: "get",
  });
}
//所有位置列表
export function allPositionList() {
  return request({
    url: "/mall/banner/position/showList",
    method: "get",
  });
}
